const {
  defineConfig
} = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  devServer: {
    //代理配置
    proxy: {
      // 首页
      '/home': {
        target: 'https://m.mall.360.cn',
        ws: true,
        changeOrigin: true,
        pathRewrite: {
          '^/home': ''
        }
      },
      // 搜索
      '/search': {
        target: 'https://search.mall.360.cn',
        ws: true,
        changeOrigin: true,
        pathRewrite: {
          '^/search': ''
        }
      },
      // 商品详情
      "/head":{
        target:"https://mall.360.cn",
        ws: true,
        changeOrigin: true,
        pathRewrite: {
          '^/head': ''
        }
      }
    }
  },

/*   configureWebpack: {
    plugins: [
      ComponentsPlugin({
        resolvers: [VantResolver()],4
      }),
    ],
  }, */
  // 每日签到
  
  // 日期 // https://mall.360.cn/signin/info   图片 https://mall.360.cn/skin/grid?type=adset_sign&v=LATEST  商品详情数据的 https://mall.360.cn/index/gethotlist
  
  // 用户评价  https://gateway.mall.360.cn/comment/findProductDetailComment  详情图片 https://m.mall.360.cn/skin/grid?type=adset_detail&v=LATEST
  // 详情
  // https://mall.360.cn/itemDetail/itemInfo?itemId=6316efc1be550f30e6ca8667&rewardType=point
})